package com.suning.sawp.dto.esb;

import java.io.Serializable;

/**
 * 查询b2c消息通用返回结果
 * 
 * @author 14062651
 * 
 */
public class CommonEsbInfo implements Serializable {

    /**
     * 序列化Id
     */
    private static final long serialVersionUID = -4466007385764842790L;

    /**
     * 判断有没有成功获得消息记录<br>
     * true:查询方式下获得了信息,<br>
     * false:未获得信息,详情查看errCode和errDesc<br>
     * 【注意】 在校验密码时,不能用此字段判断是否校验成功
     */
    private boolean success;

    /**
     * 错误代码
     */
    private String code;
    /**
     * 错误描述
     */
    private String desc;
    
    /**
     * 所有记录的个数
     */
    private String totalNum;

    public String getTotalNum() {
        return totalNum;
    }

    public void setTotalNum(String totalNum) {
        this.totalNum = totalNum;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    /**
     * toString方法
     */
    public String toString() {
        return "{success:" + success + ", code:" + code + 
                ", desc=" + desc + ", totalNum=" + totalNum + "}";
    }
}
